home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / acpi / suspend.d / 50-tosh-save-brightness.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  2008-10-14  |  343b  |  12 lines

  1. #!/bin/sh
  2.  
  3. TOSH_LCD=/proc/acpi/toshiba/lcd
  4.  
  5. if [ -e $TOSH_LCD ]; then
  6.   TOSH_BRIGHTNESS=$(( `grep brightness: $TOSH_LCD | cut -d: -f2` + 0 ))
  7.   TOSH_MAXBRIGHT=$(( `grep brightness_levels: $TOSH_LCD | cut -d: -f2` - 1))
  8.   # Turn brightness to max to make bios password prompt easier to see
  9.   echo 'brightness : '$TOSH_MAXBRIGHT > $TOSH_LCD
  10. fi
  11.  
  12.